{extend name="template/base" /}
{block name="content"}
<div class="page-container">
    <div class="cl pd-5 bg-1 bk-gray">
        <!--<span class="l">
            {tp:menu menu="add,forbid,resume,delete,recyclebin" /}
        </span>-->
		<span class="l">
            <a class="btn btn-primary radius mr-5" href="javascript:;" onclick="layer_open('添加','/admin/questions/add.html')"><i class="Hui-iconfont"></i> 添加试题</a><a href="javascript:;" onclick="forbid_all('/admin/questions/forbid.html')" class="btn btn-warning radius mr-5"><i class="Hui-iconfont"></i> 禁用试题</a>
            <a href="javascript:;" onclick="resume_all('/admin/questions/resume.html')" class="btn btn-success radius mr-5"><i class="Hui-iconfont"></i> 恢复试题</a>
            <a href="javascript:;" onclick="del_all('/admin/questions/delete.html')" class="btn btn-danger radius mr-5"><i class="Hui-iconfont"></i>软删除试题</a>


            <a href="javascript:;" onclick="layer_open('回收站','/admin/questions/recyclebin/bankid/{$Request.param.bank_id}/btype/{$Request.param.btype}.html',{w:'100%',h:'100%'})" class="btn btn-secondary radius mr-5"><i class="Hui-iconfont"></i> 回收站</a>        </span>
            {tp:menu menu="recyclebin" /}
        <span class="r pt-5 pr-5">

            共有数据 ：<strong>{$count ?? '0'}</strong> 条
        </span>
    </div>
    <table class="table table-border table-bordered table-hover table-bg mt-20">
        <thead>
        <tr class="text-c">
            {include file="question_th" /}
            <th >操作</th>
        </tr>
        </thead>
        <tbody>
        {volist name="list" id="vo"}
        <tr class="text-c">
            {include file="question_td" /}
            <td class="f-14">
               
                <a title="编辑" href="javascript:;" onclick="layer_open('编辑','/admin/questions/edit/id/{$vo.id}.html')" style="text-decoration:none" class="ml-5"><i class="Hui-iconfont"></i></a>
                {tp:menu menu='sdelete' /}
            </td>
        </tr>
        {/volist}
        </tbody>
    </table>
    <div class="page-bootstrap">{$page ?? ''}</div>
</div>
{/block}

